home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Demos / Bowers Development / AppMaker 2.0b5 / Examples / PowerPlant / Gadgets / CButtons.h < prev    next >
Text File  |  1996-03-19  |  1KB  |  65 lines

  1. // CButtons.h -- window class
  2. // Created 3/19/96 12:49 PM by AppMaker
  3.  
  4. #pragma once
  5.  
  6. #include <LWindow.h>
  7. #include <LListener.h>
  8.  
  9. class    CGadgetsData;
  10. class    LStream;
  11.  
  12. class    CInvisibleButton;
  13. class    LStdButton;
  14. class    LStdCheckBox;
  15. class    LStdRadioButton;
  16.  
  17. //----------
  18. class    CButtons :    public LWindow,
  19.                         public LListener {
  20. public:
  21.     static    CButtons*    CreateButtons        (LCommander            *inSuperCommander,
  22.                                                      CGadgetsData    *inData);
  23.  
  24.     static    CButtons*    CreateButtonsStream    (LStream    *inStream);
  25.  
  26.                         CButtons();
  27.                         CButtons        (LStream    *inStream);
  28.     virtual                ~CButtons();
  29.  
  30.     virtual void        ListenToMessage        (MessageT    inMessage,
  31.                                              void        *ioParam);
  32.  
  33.     virtual Boolean        ObeyCommand            (CommandT    inCommand,
  34.                                              void        *ioParam = nil);
  35.     virtual void        FindCommandStatus    (CommandT    inCommand,
  36.                                              Boolean    &outEnabled,
  37.                                              Boolean    &outUsesMark,
  38.                                              Char16        &outMark,
  39.                                              Str255        outName);
  40.     virtual Boolean        FocusDraw();
  41.  
  42. protected:
  43.     static    void        RegisterClass();
  44.     virtual void        FinishCreateSelf();
  45.     virtual void        ConnectToData    (CGadgetsData    *inData);
  46.  
  47. protected:
  48.  
  49. protected:
  50.     static Boolean        sIsRegistered;
  51.  
  52.     CGadgetsData        *mData;
  53.  
  54. // Panes in this window:
  55.     CInvisibleButton*    mInvisibleButton;
  56.     LStdButton*        mOKButton;
  57.     LStdButton*        mX3DButton;
  58.     LStdButton*        mPictButtonButton;
  59.     LStdButton*        mTitledPictButton;
  60.     LStdCheckBox*        mCheckCheck;
  61.     LStdRadioButton*        mX3DRadioRadio;
  62.     LStdCheckBox*        mPictCheckCheck;
  63.     LStdCheckBox*        mX3DCheckCheck;
  64. };
  65.